<?php
$arr_idiomas = array(
    'es' => 'Español',
    'en' => 'Ingles',
    'pt' => 'Portugues',
    'de' => 'Aleman'
);
$arr_huso_horarios = array(
);
$arr_gtm = array(
   '-12' => '(GMT-12:00) International Date Line West',
   '-11' => '(GMT-11:00) Midway Island, Samoa',
   '-10' => '(GMT-10:00) Hawaii',
   '-9' => '(GMT-09:00) Alaska',
   '-8' => '(GMT-08:00) Pacific Time (US & Canada),Tijuana',
   '-7' => '(GMT-07:00) Chihuahua, La Paz, Mazatlan, Arizona',
   '-6' => '(GMT-06:00) Guadalajara, Mexico City, Monterrey',
   '-5' => '(GMT-05:00) Bogota, Lima, Quito, Rio Branco',
   '-4' => '(GMT-04:00) Caracas, La Paz, Santiago',
   '-3.5' => '(GMT-03:30) Newfoundland',
   '-3' => '(GMT-03:00) Brasilia, Buenos Aires, Georgetown, Uruguay',
   '-2' => '(GMT-02:00) Mid-Atlantic',
   '-1' => '(GMT-01:00) Cape Verde Is.',
   '0' => '(GMT+00:00) Greenwich Mean Time : Dublin, Edinburgh, Lisbon, London',
   '1' => '(GMT+01:00) Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna, Madrid, Paris',
   '2' => '(GMT+02:00) Helsinki, Kyiv, Riga, Sofia, Tallinn, Vilnius',
   '3' => '(GMT+03:00) Moscow, St. Petersburg, Volgograd, Kuwait, Riyadh, Baghdad',
   '3.5' => '(GMT+03:30) Tehran',
   '4' => '(GMT+04:00) Abu Dhabi, Muscat',
   '4.5' => '(GMT+04:30) Kabul',
   '5' => '(GMT+05:00) Islamabad, Karachi, Tashkent',
   '5.5' => '(GMT+05:30) Chennai, Kolkata, Mumbai, New Delhi',
   '5.75' => '(GMT+05:45) Kathmandu',
   '6' => '(GMT+06:00) Astana, Dhaka',
   '6.5' => '(GMT+06:30) Yangon (Rangoon)',
   '7' => '(GMT+07:00) Bangkok, Hanoi, Jakarta',
   '8' => '(GMT+08:00) Beijing, Chongqing, Hong Kong, Urumqi',
   '9' => '(GMT+09:00) Osaka, Seoul, Sapporo, Tokyo',
   '9.5' => '(GMT+09:30) Darwin',
   '10' => '(GMT+10:00) Canberra, Melbourne, Sydney',
   '11' => '(GMT+11:00) Magadan, Solomon Is., New Caledonia',
   '12' => '(GMT+12:00) Fiji, Kamchatka, Marshall Is.',
   '13' => "(GMT+13:00) Nuku'alofa"
);
$arr_estado = array(
    1 => 'Potencial',
    2 => 'Regular',
    3 => 'No regular',
    4 => 'Expulsado'
);
?>
<header>
    <div class="title">
        <a href="">Clientes</a><span> > </span><strong>Ver perfil</strong>
    </div>
    <div class="shortcuts">
        <a href=""></a>
    </div>
    <div class="help">
        <a href="">Ayuda</a>
    </div>
</header>
<div class="sidebar">
    <div id="client-read" class="content">
        <h3>Perfil cliente</h3>
        <form id="client-read-form" action="#" method="post" enctype="multipart/form-data">
            <div class="form-fields">
                <div class="double">
                    <label>
                        <span class="name">Nombre:</span>
                        <input type="text" name="nombre" readonly value="<?php if ($client->get('usuarios','nombre')) echo html_entity_decode($client->get('usuarios','nombre')); ?>" id="client-read-form-nombre" placeholder="Sin datos" />
                        <span class="help" data-text="Depending on project settings weekend may be included in due date calculation"></span>
                    </label>
                    <label>
                        <span class="name">Apellido:</span>
                        <input type="text" name="apellido" readonly value="<?php if ($client->get('usuarios','apellido')) echo html_entity_decode($client->get('usuarios','apellido')); ?>" id="client-read-form-apellido" placeholder="Sin datos" />
                        <span class="help" data-text="Depending on project settings weekend may be included in due date calculation"></span>
                    </label>
                </div>
                <label>
                    <span class="name">Email:</span>
                    <input type="text" id="client-read-form-email" readonly name="email" value="<?php if ($client->get('usuarios','email')) echo html_entity_decode($client->get('usuarios','email')); ?>" placeholder="Sin datos" />
                    <span class="help" data-text="Depending on project settings weekend may be included in due date calculation"></span>
                </label>
                <label>
                    <span class="name">Pais:</span>
                    <input type="text" id="client-read-form-pais" readonly name="pais" value="<?php if ($client->get('usuarios','pais')) echo html_entity_decode($client->get('usuarios','pais')); ?>" placeholder="Sin datos" />
                    <span class="help" data-text="Depending on project settings weekend may be included in due date calculation"></span>
                </label>
                <label>
                    <span class="name">Idioma:</span>
                    <input type="text" id="client-read-form-idioma" readonly name="idioma" value="<?php if ($client->get('usuarios','idioma')) echo $arr_idiomas[html_entity_decode($client->get('usuarios','idioma'))]; ?>" placeholder="Sin datos" />
                    <span class="help" data-text="Depending on project settings weekend may be included in due date calculation"></span>
                </label>
                <label>
                    <span class="name">Huso Horario:</span>
                    <input type="text" id="client-read-form-huso_horario" readonly name="huso_horario" value="<?php echo $arr_gtm[html_entity_decode($client->get('usuarios','huso_horario'))]; ?>" placeholder="Sin datos" />
                    <span class="help" data-text="Depending on project settings weekend may be included in due date calculation"></span>
                </label>
                <div class="double">
                    <label>
                        <span class="name">Provincia/Estado:</span>
                        <input type="text" name="provincia" readonly value="<?php if ($client->get('usuarios','provincia')) echo html_entity_decode($client->get('usuarios','provincia')); ?>" id="client-read-form-provincia" placeholder="Sin datos" />
                        <span class="help" data-text="Depending on project settings weekend may be included in due date calculation"></span>
                    </label>
                    <label>
                        <span class="name">Ciudad:</span>
                        <input type="text" name="ciudad" readonly value="<?php if ($client->get('usuarios','ciudad')) echo html_entity_decode($client->get('usuarios','ciudad')); ?>" id="client-read-form-ciudad" placeholder="Sin datos" />
                        <span class="help" data-text="Depending on project settings weekend may be included in due date calculation"></span>
                    </label>
                </div>
                <div class="double">
                    <label>
                        <span class="name">Telefono:</span>
                        <input type="text" name="telefono" readonly value="<?php if ($client->get('usuarios','telefono')) echo html_entity_decode($client->get('usuarios','telefono')); ?>" id="client-read-form-telefono" placeholder="Sin datos" />
                        <span class="help" data-text="Depending on project settings weekend may be included in due date calculation"></span>
                    </label>
                    <label>
                        <span class="name">Celular:</span>
                        <input type="text" name="celular" readonly value="<?php if ($client->get('usuarios','celular')) echo html_entity_decode($client->get('usuarios','celular')); ?>" id="client-read-form-celular" placeholder="Sin datos" />
                        <span class="help" data-text="Depending on project settings weekend may be included in due date calculation"></span>
                    </label>
                </div>
            </div>
            <div class="form-fields">
              <div class='double'>
                  <label>
                          <span class="name">Cursos por semana:</span>
                          <input type="text" readonly name="ofertas" value="<?php if ($client->get('clientes','ofertas_max')) echo html_entity_decode($client->get('clientes','ofertas_max')); ?>" id="client-create-form-ofertas" placeholder="Sin datos" />
                          <span class="help" data-text="Depending on project settings weekend may be included in due date calculation"></span>
                  </label>
                  <label>
                          <span class="name">Clases por dia:</span>
                          <input type="text" readonly name="clasesxdia" value="<?php if ($client->get('clientes','clasesxdia')) echo html_entity_decode($client->get('clientes','clasesxdia')); ?>" id="client-create-form-clasesxdia" placeholder="Sin datos" />
                          <span class="help" data-text="Depending on project settings weekend may be included in due date calculation"></span>
                  </label>
              </div>
              <div class='triple'>
                  <label>
                          <span class="name">Almacenamiento:</span>
                          <input type="text"readonly name="almacenamiento" value="<?php if ($client->get('clientes','almacenamiento_max')) echo html_entity_decode($client->get('clientes','almacenamiento_max')); ?>" id="client-create-form-almacenamiento" placeholder="Sin datos" />
                          <span class="help" data-text="Depending on project settings weekend may be included in due date calculation"></span>
                  </label>
                  <label>
                          <span class="name">Users p/transmision:</span>
                          <input type="text" readonly name="user_max" value="<?php if ($client->get('clientes','alumnos_max')) echo html_entity_decode($client->get('clientes','alumnos_max')); ?>" id="client-create-form-alumnos" placeholder="Sin datos" />
                          <span class="help" data-text="Depending on project settings weekend may be included in due date calculation"></span>
                  </label>
                  <label>
                          <span class="name">Duracion:</span>
                          <input type="text" readonly name="duracion" value="<?php if ($client->get('clientes','duracion_max')) echo html_entity_decode($client->get('clientes','duracion_max')); ?>" id="client-create-form-duracion" placeholder="Sin datos" />
                          <span class="help" data-text="Depending on project settings weekend may be included in due date calculation"></span>
                  </label>
              </div>
              <label>
                      <span class="name">Exhibiciones:</span>
                      <input type="text" readonly name="exhibiciones" value="<?php if ($client->get('clientes','exhibicion_max')) echo html_entity_decode($client->get('clientes','exhibicion_max')); ?>" id="client-create-form-exhibicion" placeholder="Sin datos" />
                      <span class="help" data-text="Depending on project settings weekend may be included in due date calculation"></span>
              </label>
              <label>
                      <span class="name">Clases Personalizadas:</span>
                      <input type="text" readonly name="clases_personalizadas" value="<?php if ($client->get('clientes','clases_personalizadas_max')) echo html_entity_decode($client->get('clientes','clases_personalizadas_max')); ?>" id="client-create-form-clases-personalizadas" placeholder="Sin datos" />
                      <span class="help" data-text="Depending on project settings weekend may be included in due date calculation"></span>
              </label>
              <label>
                      <span class="name">Clases agregadas:</span>
                      <input type="text" readonly name="clases_agregadas" value="<?php if ($client->get('clientes','clases_agregadas')) echo html_entity_decode($client->get('clientes','clases_agregadas')); ?>" id="client-create-form-clases-agredadas" placeholder="Sin datos" />
                      <span class="help" data-text="Depending on project settings weekend may be included in due date calculation"></span>
              </label>
              <label>
                        <span class="name">Cantidad de reservas:</span>
                        <input type="text" readonly name="reservas" value="<?php if ($client->get('clientes','reservas_max')) echo html_entity_decode($client->get('clientes','reservas_max')); ?>" id="client-create-form-reservas" placeholder="Sin datos" />
                        <span class="help" data-text="Depending on project settings weekend may be included in due date calculation"></span>
                </label>
              <div class='double'>
                  <label>
                          <span class="name">Invitaciones:</span>
                          <input type="text" readonly name="invitaciones" value="<?php if ($client->get('clientes','invitaciones_max')) echo html_entity_decode($client->get('clientes','invitaciones_max')); ?>" id="client-create-form-invitaciones" placeholder="Sin datos" />
                          <span class="help" data-text="Depending on project settings weekend may be included in due date calculation"></span>
                  </label>
                  <label>
                          <span class="name">Eventos:</span>
                          <input type="text" readonly name="eventos" value="<?php if ($client->get('clientes','eventos_max')) echo html_entity_decode($client->get('clientes','eventos_max')); ?>" id="client-create-form-eventos" placeholder="Sin datos" />
                          <span class="help" data-text="Depending on project settings weekend may be included in due date calculation"></span>
                  </label>
              </div>
          </div>
          <div class="form-buttons">
              <a class="button important blue" href="<?php echo $host . 'clients/update/'.$glb_uri[2]; ?>"> Editar</a>
              <a class="button important" href="<?php echo $host . 'clients/delete/'.$glb_uri[2]; ?>"><span class="icon trash"></span> Dar de baja</a>
              <a class="button" href="<?php echo $host . 'clients/'; ?>"><span class="icon list"></span> Volver al listado</a>
          </div>
        </form>
    </div>
</div>